<p class="Paragraph">Index: A numeric expression that specifies the value to return.</p>
<p class="Paragraph">Selection1: Any expression containing one of the possible choices.</p>
<p class="Paragraph">The <span class="T1">Choose</span> function returns a value from the list of expressions based on the index value. If Index = 1, the function returns the first expression in the list; if index i= 2, it returns the second expression, and so on.</p>
<p class="Paragraph">If the index value is less than 1 or greater than the number of expressions listed, the function returns a Null value.</p>
<p class="Paragraph">The following example uses the <span class="T1">Choose</span> function to select a string from several which constitute a menu:</p>
<p class="P2">Example:</p>
<p class="PropText">Sub ExampleChoose</p>
<p class="PropText">Dim sReturn As String</p>
<p class="PropText">sReturn = ChooseMenu(2)</p>
<p class="PropText">Print sReturn</p>
<p class="PropText">end sub</p>
<p class="PropText"/>
<p class="PropText"/>
<p class="PropText">Function ChooseMenu(Index As Integer)</p>